package com.hisense.ovcloud.asop.entity.db.def;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

// Auto generate by mybatis-flex, do not modify it.
public class CustomDevicePairTableDef extends TableDef {

    public static final CustomDevicePairTableDef CUSTOM_DEVICE_PAIR = new CustomDevicePairTableDef();

    public final QueryColumn ID = new QueryColumn(this, "id");

    public final QueryColumn PUID = new QueryColumn(this, "puid");

    public final QueryColumn WIFI_ID = new QueryColumn(this, "wifiid");

    public final QueryColumn PAIR_END = new QueryColumn(this, "pair_end");

    public final QueryColumn DEVICE_ID = new QueryColumn(this, "deviceid");

    public final QueryColumn PLATFORM = new QueryColumn(this, "platform");

    public final QueryColumn TIMEZONE = new QueryColumn(this, "timezone");

    public final QueryColumn PAIR_ALIAS = new QueryColumn(this, "pair_alias");

    public final QueryColumn PAIR_BEGIN = new QueryColumn(this, "pair_begin");

    public final QueryColumn CUSTOMER_ID = new QueryColumn(this, "customerid");

    public final QueryColumn DEVICE_TYPE = new QueryColumn(this, "devicetype");

    public final QueryColumn TIMEZONE_ID = new QueryColumn(this, "timezone_id");

    public final QueryColumn UPDATE_TIME = new QueryColumn(this, "update_time");

    public final QueryColumn FEATURE_CODE = new QueryColumn(this, "featurecode");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段，不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, PUID, WIFI_ID, PAIR_END, DEVICE_ID, PLATFORM, TIMEZONE, PAIR_ALIAS, PAIR_BEGIN, CUSTOMER_ID, DEVICE_TYPE, TIMEZONE_ID, UPDATE_TIME, FEATURE_CODE};

    public CustomDevicePairTableDef() {
        super("", "custom_device_pair");
    }

    private CustomDevicePairTableDef(String schema, String name, String alisa) {
        super(schema, name, alisa);
    }

    public CustomDevicePairTableDef as(String alias) {
        String key = getNameWithSchema() + "." + alias;
        return getCache(key, k -> new CustomDevicePairTableDef("", "custom_device_pair", alias));
    }

}
